﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication1;

namespace SmartBlast
{
    public partial class Main : Form
    {
        private frmComponents frmComps;
        private frmProducts frmProds;
        private frmLoginAdmin frmAdmin;
        private frmExpenditures frmExps;
        private frmOrders frmOrds;
        private frmUnderConst frmUC;

        public Main()
        {
            InitializeComponent();
            frmComps = new frmComponents(this);
            frmProds = new frmProducts(this);
            frmAdmin = new frmLoginAdmin(this);
            frmExps = new frmExpenditures(this);
            frmOrds = new frmOrders(this);
            frmUC = new frmUnderConst(this);
        }



        private void btnExpenditures_Click(object sender, EventArgs e)
        {
            frmExps.Show();
        }

        private void btn_exit_Click(object sender, EventArgs e)
        {
            
                Application.Exit();
            

        }
 

        private void btnProducts_Click(object sender, EventArgs e)
        {
            frmProds.Show();
        }

        private void btn_Components_Click(object sender, EventArgs e)
        {
            frmComps.Show();
        }

        private void btnStatistics_Click(object sender, EventArgs e)
        {
            frmUC.Show();
        }

        private void btnEmployees_Click(object sender, EventArgs e)
        {
            frmAdmin.Show();
        }

        private void btnOrders_Click(object sender, EventArgs e)
        {
            frmOrds.Show();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            this.CenterToScreen();
        }









        


  
    }
}
